package pos.domain;

public class RelationImpl implements Relation{
	
	private String idRelation;
	private String subject;
	private String verb;
	private String object;
	private String idEvent;
	public String uri;
	
	public RelationImpl() {

	}

	public String getId() {
		return idRelation;
	}

	public String getSubject() {
		return subject;
	}

	public String getVerb() {
		return verb;
	}

	public String getObject() {
		return object;
	}

	public String getIdEvent() {
		return idEvent;
	}

	public void setIdRelation(String idRelation) {
		this.idRelation = idRelation;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public void setVerb(String verb) {
		this.verb = verb;
	}

	public void setObject(String object) {
		this.object = object;
	}

	public void setIdEvent(String idEvent) {
		this.idEvent = idEvent;
	}

	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((idEvent == null) ? 0 : idEvent.hashCode());
		result = prime * result
				+ ((idRelation == null) ? 0 : idRelation.hashCode());
		result = prime * result + ((object == null) ? 0 : object.hashCode());
		result = prime * result + ((subject == null) ? 0 : subject.hashCode());
		result = prime * result + ((verb == null) ? 0 : verb.hashCode());
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RelationImpl other = (RelationImpl) obj;
		if (idEvent == null) {
			if (other.idEvent != null)
				return false;
		} else if (!idEvent.equals(other.idEvent))
			return false;
		if (idRelation == null) {
			if (other.idRelation != null)
				return false;
		} else if (!idRelation.equals(other.idRelation))
			return false;
		if (object == null) {
			if (other.object != null)
				return false;
		} else if (!object.equals(other.object))
			return false;
		if (subject == null) {
			if (other.subject != null)
				return false;
		} else if (!subject.equals(other.subject))
			return false;
		if (verb == null) {
			if (other.verb != null)
				return false;
		} else if (!verb.equals(other.verb))
			return false;
		return true;
	}

	public String toString() {
		return "RelationImpl [idRelation=" + idRelation + ", subject="
				+ subject + ", verb=" + verb + ", object=" + object
				+ ", idEvent=" + idEvent + "uri="+"]";
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
		
	}
	
	
	

}
